import csv

def resultToCsv():
    with open("./result.txt", "r", encoding="utf-8") as raw:
        with open("./result.csv", "w", encoding="utf-8") as c:
            line = raw.readline()
            csvwriter = csv.writer(c, dialect="excel")
            info = []
            while(line):
                if line.startswith("="):
                    csvwriter.writerow(info)
                    info.clear()
                    line = raw.readline()
                    continue
                info.append(line[line.find(":") + 1:-1])
                line = raw.readline()


